/*
汽车销售管理系统 - 自定义样式

基于Bootstrap 5的自定义样式
提供系统专用的UI组件和样式定制
*/

/* 全局样式 */
:root {
    --primary-color: #1a3a5f;
    --primary-light: #4299e1;
    --secondary-color: #718096;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-color: #ecc94b;
    --info-color: #4299e1;
    --light-color: #f8f9fa;
    --dark-color: #2d3748;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --footer-height: 50px;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* 管理后台布局 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2339 100%);
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: var(--header-height);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.sidebar-brand i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--primary-light);
}

.sidebar.collapsed .brand-text {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 侧边栏菜单 */
.sidebar-menu {
    padding: 20px 0;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    margin: 2px 12px;
    border-radius: 8px;
    position: relative;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--primary-light);
    margin-left: 12px;
    border-radius: 0 8px 8px 0;
}

.sidebar .nav-link i {
    width: 20px;
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    margin: 2px 8px;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* 侧边栏下拉菜单 */
.sidebar .dropdown-toggle::after {
    margin-left: auto;
    border: none;
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.sidebar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

.sidebar .collapse .nav-link {
    padding: 8px 18px 8px 45px;
    margin: 1px 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar .collapse .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar .collapse .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
}

.sidebar .collapse .nav-link i {
    width: 16px;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* 主内容包装器 */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed + .main-wrapper,
.main-wrapper.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* 顶部导航栏 */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .sidebar-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.3rem;
    padding: 8px;
    margin-right: 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.header-left .sidebar-toggle:hover {
    background-color: #f1f5f9;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
}

/* 用户信息 */
.user-info .btn {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.user-info .btn:hover {
    background-color: #f1f5f9;
}

.user-info i {
    font-size: 1.5rem;
    margin-right: 8px;
}

.user-name {
    margin-right: 8px;
    font-weight: 500;
}

.user-role {
    font-size: 0.75rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 25px;
    background-color: #f8f9fa;
}

/* 页脚 */
.main-footer {
    height: var(--footer-height);
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.footer-version {
    font-weight: 500;
}

/* Flash 消息 */
.flash-messages {
    margin-bottom: 20px;
}

.flash-messages .alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 移动端遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 25px;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 18px 22px;
    border-radius: 10px 10px 0 0;
    color: var(--primary-color);
}

.card-body {
    padding: 22px;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    padding: 15px 22px;
    border-radius: 0 0 10px 10px;
}

/* 统计卡片 */
.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border-left: 4px solid var(--primary-light);
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.stats-card.success .stats-icon {
    background: linear-gradient(135deg, var(--success-color), #2f855a);
}

.stats-card.warning .stats-icon {
    background: linear-gradient(135deg, var(--warning-color), #d69e2e);
}

.stats-card.danger .stats-icon {
    background: linear-gradient(135deg, var(--danger-color), #c53030);
}

.stats-card.info .stats-icon {
    background: linear-gradient(135deg, var(--info-color), var(--primary-color));
}

.stats-card .stats-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stats-card .stats-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.stats-card .stats-change {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-change.positive {
    color: var(--success-color);
}

.stats-change.negative {
    color: var(--danger-color);
}

.stats-change i {
    font-size: 0.75rem;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
    background: white;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.02);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 12px 16px;
}

.table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table tbody tr:hover {
    background-color: rgba(66, 153, 225, 0.05);
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #2f855a;
    border-color: #2f855a;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

.btn-warning:hover {
    background-color: #d69e2e;
    border-color: #d69e2e;
    color: var(--dark-color);
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-info:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 按钮组样式 */
.btn-group .btn {
    margin: 0;
}

.btn-toolbar {
    gap: 8px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.action-buttons .btn {
    white-space: nowrap;
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.table-actions .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    height: 38px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(66, 153, 225, 0.25);
}

.form-select {
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    height: 38px;
}

.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(66, 153, 225, 0.25);
}

/* 必填字段标识 */
.required::after {
    content: " *";
    color: var(--danger-color);
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* 表单分组 */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    font-size: 1.2rem;
}

/* 表单帮助文本 */
.form-text {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* 表单验证状态 */
.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:valid:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.25rem rgba(56, 161, 105, 0.25);
}

.valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 5px;
}

/* 表单错误 */
.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.25rem rgba(229, 62, 62, 0.25);
}

/* 状态标签样式 */
.status-available {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-sold {
    background-color: #f8d7da;
    color: #842029;
}

.status-reserved {
    background-color: #fff3cd;
    color: #664d03;
}

.status-pending {
    background-color: #cff4fc;
    color: #055160;
}

.status-confirmed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* 徽章样式 */
.badge {
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
    color: white !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-light) !important;
    color: white !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
    color: white !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    color: var(--primary-light);
    border: 1px solid #d1d5db;
    padding: 0;
    margin: 0 2px;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    color: var(--primary-color);
    background-color: #f1f5f9;
    border-color: var(--primary-light);
    text-decoration: none;
}

.page-item.active .page-link {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* 弹窗组件样式 */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: white;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.modal-body {
    padding: 20px;
    background-color: white;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    margin: 0;
}

/* 危险操作弹窗 */
.modal.danger .modal-header {
    background-color: var(--danger-color);
    color: white;
}

.modal.danger .modal-title {
    color: white;
}

.modal.danger .btn-close {
    filter: invert(1);
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .sidebar {
        left: -var(--sidebar-width);
        z-index: 1050;
    }

    .sidebar.show {
        left: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .main-wrapper.sidebar-collapsed {
        margin-left: 0;
    }

    .header-left .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 15px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 15px;
    }

    .stats-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .table-responsive {
        border-radius: 8px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 10px;
    }

    .card-header {
        padding: 15px;
    }

    .card-body {
        padding: 15px;
    }

    .user-name {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 图表组件样式 */
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.chart-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.chart-description {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin: 5px 0 0 0;
}

.chart-content {
    min-height: 300px;
    position: relative;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
}

.chart-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--secondary-color);
}

.chart-no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 搜索和筛选组件 */
.search-filters {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.search-filters .row {
    align-items: end;
}

.search-filters .form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 0.875rem;
}

.search-filters .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.search-filters .form-control {
    border-right: none;
}

.search-filters .btn {
    border-left: none;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 15px;
}

.filter-summary {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-light);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 2px;
}

.filter-tag .btn-close {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 状态标签样式 */
.status-available {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-sold {
    background-color: #f8d7da;
    color: #842029;
}

.status-reserved {
    background-color: #fff3cd;
    color: #664d03;
}

.status-pending {
    background-color: #cff4fc;
    color: #055160;
}

.status-confirmed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--secondary-color);
    margin: 0 8px;
}

.breadcrumb-item a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--dark-color);
    font-weight: 500;
}

/* 空状态组件 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--secondary-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--secondary-color);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-state-description {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    max-width: 400px;
    line-height: 1.5;
}

.empty-state-action {
    margin-top: 10px;
}

/* 加载状态组件 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--secondary-color);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* 数据展示组件 */
.data-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.data-list-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-list-actions {
    display: flex;
    gap: 8px;
}

.data-list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.data-list-item:last-child {
    border-bottom: none;
}

.data-list-item:hover {
    background-color: rgba(66, 153, 225, 0.05);
}

.data-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.data-list-item-title {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.data-list-item-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.data-list-item-content {
    color: var(--dark-color);
    line-height: 1.5;
}

.data-list-item-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

/* 详情展示组件 */
.detail-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-actions {
    display: flex;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

.detail-value.large {
    font-size: 1.25rem;
    font-weight: 600;
}

.detail-value.highlight {
    color: var(--primary-light);
    font-weight: 600;
}

/* 响应式表格 */
@media (max-width: 991.98px) {
    .table-responsive-stack {
        display: block;
    }

    .table-responsive-stack .table,
    .table-responsive-stack .table thead,
    .table-responsive-stack .table tbody,
    .table-responsive-stack .table th,
    .table-responsive-stack .table td,
    .table-responsive-stack .table tr {
        display: block;
    }

    .table-responsive-stack .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-responsive-stack .table tr {
        background: white;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .table-responsive-stack .table td {
        border: none;
        padding: 8px 0;
        position: relative;
        padding-left: 35%;
        text-align: left;
    }

    .table-responsive-stack .table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.875rem;
    }

    .table-responsive-stack .table-actions {
        justify-content: flex-start;
        margin-top: 10px;
        padding-left: 0;
    }

    .table-responsive-stack .table-actions:before {
        content: "操作:";
        position: absolute;
        left: 0;
        width: 30%;
        padding-right: 10px;
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.875rem;
    }
}

/* 移动端优化 */
@media (max-width: 575.98px) {
    .search-filters {
        padding: 15px;
    }

    .search-filters .row {
        gap: 15px;
    }

    .search-filters .col-md-3,
    .search-filters .col-md-4,
    .search-filters .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }

    .filter-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-card .stats-value {
        font-size: 1.5rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .data-list-item {
        padding: 12px 15px;
    }

    .data-list-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .data-list-item-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .table-responsive-stack .table td {
        padding-left: 40%;
    }

    .table-responsive-stack .table td:before {
        width: 35%;
    }
}
